package cn.kgc.spring.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author 课工场
 * @date 2024/2/21
 * @description
 */
@Data
@Component
public class User {

    @Value("${uname}")
    private String username;
    @Value("${age}")
    private Integer age;

}
